package open.witype.filetiper.fragment.file.adapter;

/**
 * Created by Typer on 2015/5/22 0022.
 * 文件类型的枚举
 */
public enum FileType {

    UNKNOW("",0),
    FOLDER("",1),
    DOC("",2),
    PPT("",3),
    XLS("",4),
    RAR("",5),
    ZIP("",6),
    TXT("",7),
    LOG("",8),
    PNG("",9),
    JPG("",10),
    JPEG("",11),
    GIF("",12),
    BMP("",13),
    APK("",14),
    MP3("",15),
    MP4("",16),
    FLAC("",17),
    APE("",18),
    AVI("",19),
    RMVB("",20),
    RM("",21),
    XML("",22),
    HIDDEN("",23);

    private String TypeName;

    private int serial;

    FileType(String typeName,int serial) {
        TypeName = typeName;
    }

    public String getTypeName() {
        return TypeName;
    }

    public int getSerial() {
        return serial;
    }

    public static int fromString(String symbol) {
        FileType file = FileType.valueOf(symbol);
        return file.ordinal();
    }
}